Optimal. Leaf size=113 \[ -\frac {a \tanh ^{-1}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{8 \sqrt {2} c^{5/2} f}+\frac {a \cos (e+f x)}{2 f (c-c \sin (e+f x))^{5/2}}-\frac {a \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {2815, 2759,
2729, 2728, 212} \begin {gather*} -\frac {a \tanh ^{-1}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{8 \sqrt {2} c^{5/2} f}-\frac {a \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{3/2}}+\frac {a \cos (e+f x)}{2 f (c-c \sin (e+f x))^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2728
Rule 2729
Rule 2759
Rule 2815
Rubi steps
\begin {align*} \int \frac {a+a \sin (e+f x)}{(c-c \sin (e+f x))^{5/2}} \, dx &=(a c) \int \frac {\cos ^2(e+f x)}{(c-c \sin (e+f x))^{7/2}} \, dx\\ &=\frac {a \cos (e+f x)}{2 f (c-c \sin (e+f x))^{5/2}}-\frac {a \int \frac {1}{(c-c \sin (e+f x))^{3/2}} \, dx}{4 c}\\ &=\frac {a \cos (e+f x)}{2 f (c-c \sin (e+f x))^{5/2}}-\frac {a \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{3/2}}-\frac {a \int \frac {1}{\sqrt {c-c \sin (e+f x)}} \, dx}{16 c^2}\\ &=\frac {a \cos (e+f x)}{2 f (c-c \sin (e+f x))^{5/2}}-\frac {a \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{3/2}}+\frac {a \text {Subst}\left (\int \frac {1}{2 c-x^2} \, dx,x,-\frac {c \cos (e+f x)}{\sqrt {c-c \sin (e+f x)}}\right )}{8 c^2 f}\\ &=-\frac {a \tanh ^{-1}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{8 \sqrt {2} c^{5/2} f}+\frac {a \cos (e+f x)}{2 f (c-c \sin (e+f x))^{5/2}}-\frac {a \cos (e+f x)}{8 c f (c-c \sin (e+f x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.56, size = 176, normalized size = 1.56 \begin {gather*} \frac {a \left (-2 \sqrt {c} (-7+\cos (2 (e+f x))-8 \sin (e+f x))+2 \sqrt {2} \tan ^{-1}\left (\frac {\sqrt {-c (1+\sin (e+f x))}}{\sqrt {2} \sqrt {c}}\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^4 \sqrt {-c (1+\sin (e+f x))}\right )}{32 c^{5/2} f \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {c-c \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.37, size = 189, normalized size = 1.67
method | result | size |
default | \(-\frac {a \left (-\sqrt {2}\, \arctanh \left (\frac {\sqrt {c \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \left (\sin ^{2}\left (f x +e \right )\right ) c^{3}+2 \left (c \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {3}{2}} c^{\frac {3}{2}}+2 \sqrt {2}\, \arctanh \left (\frac {\sqrt {c \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \sin \left (f x +e \right ) c^{3}+4 \sqrt {c \left (1+\sin \left (f x +e \right )\right )}\, c^{\frac {5}{2}}-\sqrt {2}\, \arctanh \left (\frac {\sqrt {c \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c^{3}\right ) \sqrt {c \left (1+\sin \left (f x +e \right )\right )}}{16 c^{\frac {11}{2}} \left (\sin \left (f x +e \right )-1\right ) \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(189\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 364 vs.
\(2 (100) = 200\).
time = 0.36, size = 364, normalized size = 3.22 \begin {gather*} \frac {\sqrt {2} {\left (a \cos \left (f x + e\right )^{3} + 3 \, a \cos \left (f x + e\right )^{2} - 2 \, a \cos \left (f x + e\right ) - {\left (a \cos \left (f x + e\right )^{2} - 2 \, a \cos \left (f x + e\right ) - 4 \, a\right )} \sin \left (f x + e\right ) - 4 \, a\right )} \sqrt {c} \log \left (-\frac {c \cos \left (f x + e\right )^{2} - 2 \, \sqrt {2} \sqrt {-c \sin \left (f x + e\right ) + c} \sqrt {c} {\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )} + 3 \, c \cos \left (f x + e\right ) + {\left (c \cos \left (f x + e\right ) - 2 \, c\right )} \sin \left (f x + e\right ) + 2 \, c}{\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right ) + 4 \, {\left (a \cos \left (f x + e\right )^{2} - 3 \, a \cos \left (f x + e\right ) - {\left (a \cos \left (f x + e\right ) + 4 \, a\right )} \sin \left (f x + e\right ) - 4 \, a\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{32 \, {\left (c^{3} f \cos \left (f x + e\right )^{3} + 3 \, c^{3} f \cos \left (f x + e\right )^{2} - 2 \, c^{3} f \cos \left (f x + e\right ) - 4 \, c^{3} f - {\left (c^{3} f \cos \left (f x + e\right )^{2} - 2 \, c^{3} f \cos \left (f x + e\right ) - 4 \, c^{3} f\right )} \sin \left (f x + e\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a \left (\int \frac {\sin {\left (e + f x \right )}}{c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin ^{2}{\left (e + f x \right )} - 2 c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin {\left (e + f x \right )} + c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c}}\, dx + \int \frac {1}{c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin ^{2}{\left (e + f x \right )} - 2 c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c} \sin {\left (e + f x \right )} + c^{2} \sqrt {- c \sin {\left (e + f x \right )} + c}}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 229 vs.
\(2 (100) = 200\).
time = 0.55, size = 229, normalized size = 2.03 \begin {gather*} -\frac {\frac {2 \, \sqrt {2} a \log \left (\frac {{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}\right )}{c^{\frac {5}{2}} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {\sqrt {2} a {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{c^{\frac {5}{2}} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} + \frac {\sqrt {2} {\left (a \sqrt {c} - \frac {2 \, a \sqrt {c} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}\right )} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}{c^{3} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{128 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {a+a\,\sin \left (e+f\,x\right )}{{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________